<%@page import="com.bci.pwtz.common.util.SpringUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.bci.pwtz.mysql.model.AdminUser"%>
<%@ page import="com.bci.pwtz.common.PwtzConstants"%>
<%
AdminUser adminUser = (AdminUser) session.getAttribute("adminuser");
String hpath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
String currentCompanName = "";
if(adminUser!=null)
{ 
%>
    <div class="pwsj_top">
		<img class="pwsj_logo" src="<%=hpath %>admin/images/logo.png" alt=""  />
		<p class="dwmc"><%=currentCompanName %></p>
		<p class="pwsj_welcome"><%=adminUser.getLoginName() %>，你好！欢迎使运维管理系统！</p>
		<ul class="top_menu_ul">
			<li class="top_menu_li"><a href="<%=hpath %>admin/m/modifypassword.jsp">密码修改</a></li>
			<li class="logout"><a href="#" onclick="logout();return false;" class="esc">[ 退出登录 ]</a></li>
		</ul>
	</div>
<%}else{
	response.sendRedirect(hpath+"admin/login.jsp");
	return;
}%>
<script>
function logout()
{
		if(confirm('你是否退出该系统?'))
			{
			location.href="<%=hpath%>admin/adminuser/logout?loginUrl="+escape('<%=hpath%>admin/login.jsp');
			}
}
</script>   
